﻿using System.Collections.Generic;
using System.Diagnostics;

namespace VibrationCalculation
{
    class Program
    {
        static void Main(string[] args)
        {
            List<Student> student = new List<Student>();
            student.Add(new Student { Roll = 1, Name = "Abhijit", Marks = 87, Addresses = new Address { Address1 = "add1", Address2 = "add2" } });
            student.Add(new Student { Roll = 2, Name = "Abhishek", Marks = 41, Addresses = new Address { Address1 = "add3", Address2 = "add4" } });
            student.Add(new Student { Roll = 3, Name = "Rahul", Marks = 67, Addresses = new Address { Address1 = "add5", Address2 = "" } });
            student.Add(new Student { Roll = 4, Name = "Sunil", Marks = 91, Addresses = new Address { Address1 = "add11", Address2 = "add122" } });
            student.Add(new Student { Roll = 5, Name = "Atul", Marks = 71, Addresses = new Address { Address1 = "add12", Address2 = "add222" } });
            student.Add(new Student { Roll = 6, Name = "Kunal", Marks = 71, Addresses = new Address { Address1 = "add12", Address2 = "add222" } });
            student.ForEach(st => st.Name = st.Name.ToUpperInvariant());
        }
    }

    class Student
    {
        public int Roll { get; set; }
        public string Name { get; set; }
        [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
        public int Marks { get; set; }
        [DebuggerBrowsable(DebuggerBrowsableState.RootHidden)]
        public Address Addresses { get; set; }
    }

    class Address
    {
        public string Address1 { get; set; }
        public string Address2 { get; set; }
    }
}
